import HTTP_CODE from '../constant/http-code'
import * as request from '../constant/fetch-request'
import {message} from 'antd'

export const submitNote = (quizNote) => {
    return () => {
        (async () => {
            const res = await request.post(`../api/v2/quizNote`, quizNote)
            if (res.status === HTTP_CODE.CREATED) {
                message.success('备注成功')
            }
        })()
    }
}
